.class Lrexsee/multimedia/RexseeCamera$4;
.super Lrexsee/core/browser/clazz/ActivityResult$ActivityResultListener;
.source "RexseeCamera.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/multimedia/RexseeCamera;->takePicture(ILjava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/multimedia/RexseeCamera;

.field private final synthetic val$path:Ljava/lang/String;


# direct methods
.method constructor <init>(Lrexsee/multimedia/RexseeCamera;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/multimedia/RexseeCamera$4;->this$0:Lrexsee/multimedia/RexseeCamera;

    iput-object p2, p0, Lrexsee/multimedia/RexseeCamera$4;->val$path:Ljava/lang/String;

    .line 229
    invoke-direct {p0}, Lrexsee/core/browser/clazz/ActivityResult$ActivityResultListener;-><init>()V

    return-void
.end method


# virtual methods
.method public run(ILandroid/content/Intent;)V
    .locals 5
    .param p1, "resultCode"    # I
    .param p2, "resultIntent"    # Landroid/content/Intent;

    .prologue
    const-string v4, "content://media/external/images/media"

    .line 232
    const/4 v1, -0x1

    if-ne p1, v1, :cond_4

    .line 233
    iget-object v1, p0, Lrexsee/multimedia/RexseeCamera$4;->this$0:Lrexsee/multimedia/RexseeCamera;

    iget-object v2, p0, Lrexsee/multimedia/RexseeCamera$4;->val$path:Ljava/lang/String;

    # invokes: Lrexsee/multimedia/RexseeCamera;->isValidResult(Ljava/lang/String;)Z
    invoke-static {v1, v2}, Lrexsee/multimedia/RexseeCamera;->access$3(Lrexsee/multimedia/RexseeCamera;Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 234
    iget-object v1, p0, Lrexsee/multimedia/RexseeCamera$4;->this$0:Lrexsee/multimedia/RexseeCamera;

    iget-object v2, p0, Lrexsee/multimedia/RexseeCamera$4;->val$path:Ljava/lang/String;

    iget-object v3, p0, Lrexsee/multimedia/RexseeCamera$4;->val$path:Ljava/lang/String;

    # invokes: Lrexsee/multimedia/RexseeCamera;->returnPic(Ljava/lang/String;Ljava/lang/String;)V
    invoke-static {v1, v2, v3}, Lrexsee/multimedia/RexseeCamera;->access$2(Lrexsee/multimedia/RexseeCamera;Ljava/lang/String;Ljava/lang/String;)V

    .line 250
    :goto_0
    return-void

    .line 236
    :cond_0
    invoke-virtual {p2}, Landroid/content/Intent;->getDataString()Ljava/lang/String;

    move-result-object v0

    .line 237
    .local v0, "output":Ljava/lang/String;
    if-nez v0, :cond_1

    .line 238
    iget-object v1, p0, Lrexsee/multimedia/RexseeCamera$4;->this$0:Lrexsee/multimedia/RexseeCamera;

    iget-object v2, p0, Lrexsee/multimedia/RexseeCamera$4;->this$0:Lrexsee/multimedia/RexseeCamera;

    const-string v3, "content://media/external/images/media"

    # invokes: Lrexsee/multimedia/RexseeCamera;->contentToPath(Ljava/lang/String;)Ljava/lang/String;
    invoke-static {v2, v4}, Lrexsee/multimedia/RexseeCamera;->access$1(Lrexsee/multimedia/RexseeCamera;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lrexsee/multimedia/RexseeCamera$4;->val$path:Ljava/lang/String;

    # invokes: Lrexsee/multimedia/RexseeCamera;->returnPic(Ljava/lang/String;Ljava/lang/String;)V
    invoke-static {v1, v2, v3}, Lrexsee/multimedia/RexseeCamera;->access$2(Lrexsee/multimedia/RexseeCamera;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 239
    :cond_1
    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v1

    const-string v2, "file://"

    invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 240
    iget-object v1, p0, Lrexsee/multimedia/RexseeCamera$4;->this$0:Lrexsee/multimedia/RexseeCamera;

    iget-object v2, p0, Lrexsee/multimedia/RexseeCamera$4;->val$path:Ljava/lang/String;

    # invokes: Lrexsee/multimedia/RexseeCamera;->returnPic(Ljava/lang/String;Ljava/lang/String;)V
    invoke-static {v1, v0, v2}, Lrexsee/multimedia/RexseeCamera;->access$2(Lrexsee/multimedia/RexseeCamera;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 241
    :cond_2
    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v1

    const-string v2, "content://"

    invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_3

    .line 242
    iget-object v1, p0, Lrexsee/multimedia/RexseeCamera$4;->this$0:Lrexsee/multimedia/RexseeCamera;

    iget-object v2, p0, Lrexsee/multimedia/RexseeCamera$4;->this$0:Lrexsee/multimedia/RexseeCamera;

    # invokes: Lrexsee/multimedia/RexseeCamera;->contentToPath(Ljava/lang/String;)Ljava/lang/String;
    invoke-static {v2, v0}, Lrexsee/multimedia/RexseeCamera;->access$1(Lrexsee/multimedia/RexseeCamera;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lrexsee/multimedia/RexseeCamera$4;->val$path:Ljava/lang/String;

    # invokes: Lrexsee/multimedia/RexseeCamera;->returnPic(Ljava/lang/String;Ljava/lang/String;)V
    invoke-static {v1, v2, v3}, Lrexsee/multimedia/RexseeCamera;->access$2(Lrexsee/multimedia/RexseeCamera;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 244
    :cond_3
    iget-object v1, p0, Lrexsee/multimedia/RexseeCamera$4;->this$0:Lrexsee/multimedia/RexseeCamera;

    iget-object v2, p0, Lrexsee/multimedia/RexseeCamera$4;->this$0:Lrexsee/multimedia/RexseeCamera;

    const-string v3, "content://media/external/images/media"

    # invokes: Lrexsee/multimedia/RexseeCamera;->contentToPath(Ljava/lang/String;)Ljava/lang/String;
    invoke-static {v2, v4}, Lrexsee/multimedia/RexseeCamera;->access$1(Lrexsee/multimedia/RexseeCamera;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lrexsee/multimedia/RexseeCamera$4;->val$path:Ljava/lang/String;

    # invokes: Lrexsee/multimedia/RexseeCamera;->returnPic(Ljava/lang/String;Ljava/lang/String;)V
    invoke-static {v1, v2, v3}, Lrexsee/multimedia/RexseeCamera;->access$2(Lrexsee/multimedia/RexseeCamera;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 248
    .end local v0    # "output":Ljava/lang/String;
    :cond_4
    iget-object v1, p0, Lrexsee/multimedia/RexseeCamera$4;->this$0:Lrexsee/multimedia/RexseeCamera;

    const/4 v2, 0x0

    iget-object v3, p0, Lrexsee/multimedia/RexseeCamera$4;->val$path:Ljava/lang/String;

    # invokes: Lrexsee/multimedia/RexseeCamera;->returnPic(Ljava/lang/String;Ljava/lang/String;)V
    invoke-static {v1, v2, v3}, Lrexsee/multimedia/RexseeCamera;->access$2(Lrexsee/multimedia/RexseeCamera;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method
